<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ include file="/WEB-INF/views/includes.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>View Users</title>
</head>
<body>

	<h1>
		View Users
	</h1>

		<table>
  <thead>
    <th>User Name</th>

  </thead>
	  <c:forEach var="user" items="${users}">
    <tr>
    
        <spring:url value="user/{userId}" var="userUrl">
        	<spring:param name="userId" value="${user.userListId}" />
        </spring:url>
        <a href="${fn:escapeXml(userUrl)}">${user.userName}</a>
    </tr>
      </c:forEach>
      </table>
      
	<hr>		
	<a href="user/new">Create User</a> 

</body>
</html>